package com.twu.biblioteca;

import java.io.PrintStream;
import java.util.List;

/**
 * Created by thoughtworker on 1/14/14.
 */
public class ConsolePrinter {
    PrintStream printStream;

    public ConsolePrinter(PrintStream printStream) {
        this.printStream = printStream;
    }



    public void welcomeMessage(){
        printStream.println("Welcome!");
    }

    public void printBookList(List<Book> bookList) {
        printStream.println("These are the available books:");
        if(bookList.isEmpty()){
            printStream.println("There are no available books.");
        }
        else
            for(Book book: bookList){
                printStream.println(book.title);
            }
    }

    public void printMenu() {
        printStream.println("Available Options:");
        printStream.println("Enter 1 - See items available");
    }

    public void printMenuInputError() {
        printStream.println("Select a valid option!");
    }
}
